package com.study.mybatisplus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 金币套餐
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_coin")
public class Coin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 唯一编码
     */
    private String number;

    /**
     * 金币原始数量
     */
    private Long originCoin;

    /**
     * 金币数量
     */
    private Long coin;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 权重
     */
    private Integer weight;

    /**
     * 是否上架
     */
    private Boolean isUp;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    public Long getOriginCoin() {
        return originCoin;
    }

    public void setOriginCoin(Long originCoin) {
        this.originCoin = originCoin;
    }
    public Long getCoin() {
        return coin;
    }

    public void setCoin(Long coin) {
        this.coin = coin;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
    public Boolean getUp() {
        return isUp;
    }

    public void setUp(Boolean isUp) {
        this.isUp = isUp;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }

    @Override
    public String toString() {
        return "Coin{" +
            "id=" + id +
            ", number=" + number +
            ", originCoin=" + originCoin +
            ", coin=" + coin +
            ", price=" + price +
            ", weight=" + weight +
            ", isUp=" + isUp +
            ", updateDatetime=" + updateDatetime +
            ", createDatetime=" + createDatetime +
        "}";
    }
}
